package dc.medicine.com.okhttplib.model;

import java.io.Serializable;
import java.util.HashMap;
import java.util.concurrent.ConcurrentHashMap;

/**
 * Created by hp on 2016/7/18.
 */
public class HttpParams implements Serializable {

    public ConcurrentHashMap<String,String>systemParmas;//系统级参数

    public ConcurrentHashMap<String,String>appsParmas;//应用级参数

    private void init() {
        systemParmas = new ConcurrentHashMap<>();
        appsParmas = new ConcurrentHashMap<>();
    }
    public HttpParams() {
        init();
    }

    public HttpParams(String key, String value) {
        init();
        putsystemParmas(key, value);
    }

    public void putsystemParmas(String key, String value) {
        if (key != null && value != null) {
            systemParmas.put(key,value);
        }
    }

    public void putappsParmas(String key, String value) {
        if (key != null && value != null) {
            appsParmas.put(key,value);
        }
    }


}
